package main

import (
	"net/url"
	"fmt"
)

func main() {
	var urlStr string = "http://baidu.com/index.php/?abc=1_羽毛"
	l, err := url.ParseQuery(urlStr)
	fmt.Println(l, err)
	l2, err2 := url.ParseRequestURI(urlStr)
	fmt.Println(l2, err2)

	l3, err3 := url.Parse(urlStr)
	fmt.Println(l3, err3)
	fmt.Println(l3.Path)
	fmt.Println(l3.RawQuery)
	fmt.Println(l3.Query())
	fmt.Println(l3.Query().Encode())


}
